/**
 * @param {number} low
 * @param {number} high
 * @return {number}
 */
export var countOdds = function (low, high) {
  const diff = high - low + 1
  let ans = diff >> 1
  if (diff % 2 && low % 2) {
    ans++
  }
  return ans
}

/**
 * @param {number} low
 * @param {number} high
 * @return {number}
 */
export var countOdds2 = function (low, high) {
  return ((high + 1) >> 1) - (low >> 1)
}
